#include <stdio.h>
#include "../memory.h"

int main() {
  struct Memory *m = init_memory();
  struct MemResult res1 = new_memory(m, 1);
  struct MemResult res2 = new_memory(m, 1);
  struct MemResult res3 = new_memory(m, 1);
  printf("memory count: %d\n", memory_count(m));
  free_memory(m, res1.id);
  printf("memory count: %d\n", memory_count(m));
  free_memory_all(m);
  printf("memory count: %d\n", memory_count(m));
  
  return 0;
}
